<?
/************************
 * Hauptnavigation Modul
 * 
 * /index.php
 * **********************
 */
require "html.php";
echo "<!-- /index.php -->";

switch($_GET["idcat"])
{
	case 1: $hPage='cockpit.php';
			$mClass1="active"; 
			break;
	case 2: $hPage='friends.php';
			$mClass2="active"; 
			break;
	case 3: $hPage='gen.php';
			$mClass3="active"; 
			break;
	case 4: $hPage='utils.php';
			$mClass4="active"; 
			break;
			
	default:$hPage=$navigationDir.'gen.php';

}

?>
<html>
<head>
<script type="text/javascript">
	function swapClass(object)
	{
		if (object.className=='')
		{
			object.className='activeTemp';
		    return;
		}
		if (object.className=='activeTemp') 
			object.className='';
	}
 
function JSset(set)
{
 document.sendForm.toorder.value = set;
 document.sendForm.submit();
}
 
 
</script>
<title>Myspace Friends Tool</title>
<link rel=stylesheet type="text/css" href="style.css">
</head>
<body>

<table id="Menu">
	<?

	echo "<tr>";
	// Menu: Cockpit 

		echo "
			<td onmouseover=\"swapClass(this)\" onmouseout=\"swapClass(this)\" class=\"".$mClass1."\">
				".pv_href_link("index.php", "DB update", "", 1, 0)."
			</td>\n";

	
	
	// Menu: Friends

		echo "
			<td onmouseover=\"swapClass(this)\" onmouseout=\"swapClass(this)\" class=\"".$mClass2."\">
				".pv_href_link("index.php", "Friends", "", 2, 0)."
			</td>\n";
		
	

	?>
		<td onMouseOver="swapClass(this)" onMouseOut="swapClass(this)" class="<?=$mClass3?>"><nobr>
			<? echo pv_href_link("index.php", "Link Generator", "", 3, 0);?></nobr>
		</td>

		<td onMouseOver="swapClass(this)" onMouseOut="swapClass(this)" class="<?=$mClass4?>"><nobr>
			<? echo pv_href_link("index.php", "Utils", "", 4, 0);?></nobr>
		</td>

	</tr>
</table>

<div id="Content">
	<? 
		require($hPage);
	?>
	<center><font style="font-weight:bold;">DEUS INVERSUS 2008</font> (v1.0)</center>
</div>

<div id="Header">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td style="font-size:20; font-weight:bold">
				<? echo "Myspace Friends Tool";?>
			</td>
			<td align="right">

			</td>
		</tr>
	</table>
</div>

</body>
</html>